package com.dream.cgomall.service.impl;

import com.dream.cgomall.dao.CgoGoodsDao;
import com.dream.cgomall.entity.CgoGoods;
import com.dream.cgomall.service.CgoGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CgoGoodsServiceImpl implements CgoGoodsService {
    @Autowired
    private CgoGoodsDao cgoGoodsDao;
    @Override
    public CgoGoods findGoods(Integer id) {
        CgoGoods cgoGoods = cgoGoodsDao.findGoods(id);
        return cgoGoods;
    }
}
